put "True" into card field "Changed" of card "Builder Map"
pass CloseField
end CloseField
-- part 36 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=52 right=101 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Application
-- part 37 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=103 right=153 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Desktop
-- part 38 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=155 right=205 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Toolbox
-- part 39 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=207 right=257 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Operating System
-- part 40 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=259 right=309 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Hardware
-- part 18 (button)
-- low flags: 80
-- high flags: 8000
-- rect: left=19 top=61 right=111 bottom=98
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Sample
----- HyperTalk script -----
-- part 35 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=52 right=309 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Limits
-- part 19 (button)
-- low flags: 80
-- high flags: A002
-- rect: left=142 top=320 right=338 bottom=210
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Redraw
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
repeat with j = 1 to the number of buttons
repeat with k = 1 to j-1
if abs(item 1 of the loc of button j - item 1 of the loc of button k) < 10 then
moveIcon (the short name of button j), (layer(field "Layer" of card ID (word 1 of the script of button j))), item 1 of the loc of button j, item 1 of the loc of button k
set the loc of button j to (item 1 of the loc of button k), item 2 of the loc of button j
end if
end repeat
end repeat
choose line tool
doMenu "Select All"
doMenu "Clear Picture"
set lineSize to 1
repeat with n = 1 to the number of card buttons
repeat with m = 1 to the number of card buttons
if word 1 of the script of card button n is in line 2 of the script of card button m then
drag from the loc of card button n to the loc of card button m
end if
end repeat
end repeat
choose browse tool
end mouseUp
-- part 20 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=477 top=9 right=42 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 7856 / 7856
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Next
----- HyperTalk script -----
on mouseUp
if the commandKey is up then
-- do regular dissolve or wipe
if (field "Title" of next card of this background) is field "Title" of this card then
visual effect dissolve
else
visual effect wipe left
end if
go to next card of this background
else
-- Copy this card to the next one
doMenu "Copy Card"
doMenu "Paste Card"
newCard
end if
end mouseUp
-- part 21 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=405 top=309 right=342 bottom=441
-- title width / last selected line: 0
-- icon id / first selected line: 19104 / 19104
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Prev Slice
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
if the commandKey is up then
go to prev card
else
-- Make another card like this one
doMenu "Copy Card"
go prev
doMenu "Paste Card"
newCard
end if
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=475 top=309 right=342 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 20955 / 20955
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
pop card
end mouseUp
-- part 24 (button)
-- low flags: 80
-- high flags: 8002
-- rect: left=15 top=320 right=338 bottom=69
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Add
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
global building
if the hilite of me is false then
put the short ID of this card into building
set the hilite of me to true
else
put empty into building
set the hilite of me to false
end if
end mouseUp
-- part 26 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=434 top=7 right=41 bottom=490
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 156
-- text size: 24
-- style flags: 0
-- line height: 32
-- part name: Order
-- part 33 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=369 top=309 right=342 bottom=406
-- title width / last selected line: 0
-- icon id / first selected line: 29848 / 29848
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
global startCard
put the short ID of this card into startCard
go card "Builder Help"
end mouseUp
-- part 34 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=440 top=309 right=342 bottom=476
-- title width / last selected line: 0
-- icon id / first selected line: 7856 / 7856
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Next Slice
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
set lockScreen to true
set cursor to watch
put field "Title" into startTitle
repeat until field "Title" is not startTitle and field "Title" is not empty
go to next card of this background
end repeat
end mouseUp
-- part 42 (button)
-- low flags: 80
-- high flags: A002
-- rect: left=298 top=320 right=338 bottom=366
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Detach
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
global selectList
if the number of lines of selectList < 2 then
answer "Shift-click 2 or more icons first." with OK
else
set cursor to watch
choose line tool
set pattern to 1 -- white
repeat with n = 2 to the number of lines in selectList
detach line n of selectList,line n-1 of selectList
detach line n-1 of selectList,line n of selectList
drag from the loc of button ID (line n of selectList) to the loc of button ID (line n-1 of selectList) with optionKey
end repeat
choose browse tool
end if
end mouseUp
on detach a,b
repeat with n = 1 to the number of items of line 2 of the script of button ID a
if item n of line 2 of the script of button ID a is word 1 of the script of button ID b then
get the script of button ID a
delete item n of line 2 of it
set the script of button ID a to it
end if
end repeat
end detach
-- part 43 (button)
-- low flags: 80
-- high flags: A002
-- rect: left=226 top=320 right=338 bottom=294
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Connect
----- HyperTalk script -----
on mouseDown
end mouseDown
on mouseStillDown
end mouseStillDown
on mouseUp
global selectList
if the number of lines of selectList < 2 then
answer "Shift-click two or more icons first." with OK
else
set cursor to watch
choose line tool
set lineSize to 1
repeat with n = 2 to the number of lines in selectList
attach line n of selectList,line n-1 of selectList
attach line n-1 of selectList,line n of selectList
drag from the loc of button ID (line n of selectList) to the loc of button ID (line n-1 of selectList)
end repeat
choose browse tool
end if
end mouseUp
on attach a,b
if word 1 of the script of button ID b is not in line 2 of the script of button ID a then
get the script of button ID a
put word 1 of the script of button ID b & "," before line 2 of it
set the script of button ID a to it
end if
end attach
-- part 44 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=52 right=64 bottom=71
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to card id 100625
end mouseUp
on mouseDown
exit mouseDown
end mouseDown
on mouseStillDown
exit mouseStillDown
end mouseStillDown
-- part 48 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=103 right=115 bottom=57
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to card id 101006
end mouseUp
on mouseDown
exit mouseDown
end mouseDown
on mouseStillDown
exit mouseStillDown
end mouseStillDown
-- part 49 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=155 right=167 bottom=58
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to card id 101184
end mouseUp
on mouseDown
exit mouseDown
end mouseDown
on mouseStillDown
exit mouseStillDown
end mouseStillDown
-- part 50 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=207 right=219 bottom=101
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to card id 101803
end mouseUp
on mouseDown
exit mouseDown
end mouseDown
on mouseStillDown
exit mouseStillDown
end mouseStillDown
-- part 51 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=15 top=259 right=271 bottom=66
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to card id 105423
end mouseUp
on mouseDown
exit mouseDown
end mouseDown
on mouseStillDown
exit mouseStillDown
end mouseStillDown
-- part 52 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=451 top=9 right=42 bottom=485
-- title width / last selected line: 0
-- icon id / first selected line: 19104 / 19104
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Prev
----- HyperTalk script -----
on mouseUp
if the commandKey is up then
-- do regular dissolve or wipe
if (field "Title" of prev card of this background) is field "Title" of this card then